// /src/utils/auth.js
const TOKEN_KEY = 'vue3_admin_token'

export function getToken() {
    return localStorage.getItem(TOKEN_KEY)
}

export function setToken(token) {
    console.log('setToken被调用，参数:', token, '类型:', typeof token);
    localStorage.setItem(TOKEN_KEY, token)
}

export function removeToken() {
    localStorage.removeItem(TOKEN_KEY)
}